package com.bflow.commons.bean;

import com.bflow.commons.util.StrUtil;


public class TableQuery {


    /** 当前记录起始索引 */
    private Integer offset;
    /** 每页显示记录数 */
    private Integer limit;


    /** 排序字段 */
    private String orderBy;

    /** 排序方式：ASC/DESC */
    private String order;



    public Integer getOffset() {
        return offset;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public String getOrderBy() {
        return StrUtil.camelToUnderline(this.orderBy);
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }


}
